//
//  THJNetWork.h
//  THJXHW
//
//  Created by 河南德艺 on 17/3/11.
//  Copyright © 2017年 河南德艺. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void(^NetHandler)(id receiveData, NSError * error);
@interface THJNetWork : NSObject
+(void)getNetDataFromUrl:(NSString*)url callback:(NetHandler)handler;
+(void)getNetDataWithTokenFromUrl:(NSString*)url callback:(NetHandler)handler;
+(void)getCompanyIntroFromUrl:(NSString*)url callback:(NetHandler)handler Type:(NSInteger)type;
+(void)postNetDataFromUrl:(NSString*)url parameters:(NSDictionary*)dic callback:(NetHandler)handler;
+(void)postDataFromUrl:(NSString*)url parameters:(NSDictionary*)dic Token:(NSString*)token callback:(NetHandler)handler;
+(void)postLoginFromUrl:(NSString*)url parameters:(NSDictionary*)dic callback:(NetHandler)handler;
+(void)postGroupAddNetDataFromUrl:(NSString*)url parameters:(NSDictionary*)dic callback:(NetHandler)handler  Type:(NSInteger)type;
+(void)GetDataWithGetRequestTypeUrl:(NSString*)url Callback:(NetHandler)handler;
+(void)GetProductInfoWithProductItemId:(NSString*)itemid Callback:(NetHandler)handler;
@end
